<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
  div{
    width: 200px;
    height: 200px;
    border: 1px solid red;
    /*scroll超出区域滚动显示*/
    overflow: scroll;/*hidden设置超出区域隐藏*/
  }
  img{
      /*设置垂直对齐方式: top上,middle中间,bottom下,baseline基线(默认)*/
      vertical-align: bottom;
  }
  </style>
</head>
<body>
<input type="text"><img src="../b.jpg" style="width: 50px">
<div>
  <img src="../b.jpg" alt="">
</div>
</body>
</html>